#include "points.h"
#include <stdio.h>
int main()
{
    FILE_* fp = fopen_("./bzh.txt","w");
    if(fp == NULL)
    {
        return -1;
    }
    int cnt=10;
    const char* sp = "hello\n";
    //const char* sp = "hello";
    while(cnt)
    {
        fwrite_(sp,strlen(sp),fp);
        //fflush_(fp);
        sleep(1);
        printf("count = %d\n",cnt);
        //if(cnt==5)
            //fflush_(fp);
        cnt--;
        if(cnt==0)
            break;
    }
    fclose_(fp);
    return 0;
}
